<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=MacRoman">
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style.css" />
        <title>Statuses</title>
    </head>
    <body>
        <%@include file="header.jsp"%>
        <h1>Statuses</h1>

        <table>
            <c:choose>
                <c:when test="${empty it}">
                    <p>Currently you have no statuses.</p>
                </c:when>
                <c:otherwise>
                    <c:forEach var="status" items="${it}">
                        <tr>
                            <td><a href="${status.id}">${status.text}</a></td><td>(${status.createdAt})</td>
                        </tr>
                    </c:forEach>
                </c:otherwise>
            </c:choose>
        </table>
        <%@include file="footer.jsp"%>
    </body>
</html>
